import React, { Component } from 'react';
import './App.css'
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import Login from './pages/login/login';
import Admin from './pages/admin/admin';


class App extends Component {

    render() {
        return (
            <div className='myApp'>
                <BrowserRouter>
                    <Switch>
                        <Route path="/Login" component={Login}></Route>
                        <Route path='/' component={Admin}></Route>
                    </Switch>
                </BrowserRouter>
            </div>
        );
    }
}

export default App;